import request from '@/utils/request'
import qs from 'qs'
// 获取用户测消息中心数据
export const getusernewslistapi = params => request.get('sst-microservice-biz/sst/message/user/page/list', { params })
// 标记已读
export const postyilooksapi = data => request.post('sst-microservice-biz/sst/message/user/readAlready', qs.stringify(data))
// 删除数据
export const postdellistapi = data => request.post('sst-microservice-biz/sst/message/user/delete', qs.stringify(data))
// 平台消息中心
export const getpingtainewsapi = params => request.get('sst-microservice-biz/sst/message/platform/page/list', { params })
// 消息类型列表
export const geinewtypeapi = () => request.get('sst-microservice-biz/sst/message/type/list')
// 查询全部组织机构
export const getarrzuzhiapi = params => request.get('core/security/organization/manager/page', { params })
// 查询部门
export const getarrbumenapi = params => request.get('core/security/organization/child/list', { params })
// 获取用户
export const getuserlistapi = params => request.get('core/security/user/list', { params })
// 新增消息
export const getaddnewsapi = data => request.post('sst-microservice-biz/sst/message/platform/add', data)
// 删除
export const postdelnewsapi = data => request.post(`sst-microservice-biz/sst/message/platform/delete?messageId=${data.messageId}`)
// 发布
export const postfabunewsapi = data => request.post(`sst-microservice-biz/sst/message/platform/publish?messageId=${data.messageId}`)
//撤销
export const postcexiaonewsapi = data => request.post(`sst-microservice-biz/sst/message/platform/revoke?messageId=${data.messageId}`)
// 修改
export const postupdatenewsapi=data=>request.post('sst-microservice-biz/sst/message/platform/update',data)